import request from '@/utils/request'

// 查询幻灯片详情列表
export function listSlideInfo(query) {
  return request({
    url: '/cms/slideInfo/list',
    method: 'get',
    params: query
  })
}

// 查询幻灯片详情详细
export function getSlideInfo(id) {
  return request({
    url: '/cms/slideInfo/' + id,
    method: 'get'
  })
}

// 新增幻灯片详情
export function addSlideInfo(data) {
  return request({
    url: '/cms/slideInfo',
    method: 'post',
    data: data
  })
}

// 修改幻灯片详情
export function updateSlideInfo(data) {
  return request({
    url: '/cms/slideInfo',
    method: 'put',
    data: data
  })
}

// 删除幻灯片详情
export function delSlideInfo(id) {
  return request({
    url: '/cms/slideInfo/' + id,
    method: 'delete'
  })
}
